package com.zxj.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

@Data
@TableName("tb_car")
@ApiModel(value="汽车对象", description="汽车表")
public class TbCar {
 @TableId(value = "id",type = IdType.AUTO)
  private Long id;
 @TableField(value = "carName")
  private String carName;
  private long type;
  private long brandId;
  private long configId;
  private String intro;
  private String vin;
  private double buyPrice;
  private long shopId;
  private long state;
  private double price;

  @TableField(exist = false)
  private TbBrand tbBrand;
  @TableField(exist = false)
  private TbCarType tbCarType;
  @TableField(exist = false)
  private TbCarTypeConfigDetails tbCarTypeConfigDetails;
  @TableField(exist = false)
  private TbShop tbShop;
  @TableField(exist = false)
  private TbCarComment tbCarComment;
 private String img;
}
